package com.hxq.demo.adapter.clazz;

import com.hxq.demo.adapter.Computer;
import com.hxq.demo.adapter.SDCard;
import com.hxq.demo.adapter.SDCardImpl;

public class ClazzClient {
    public static void main(String[] args) {
        Computer computer = new Computer();
        SDCard sdCard = new SDCardImpl();
        System.out.println(computer.readSD(sdCard));

        System.out.println("------------");

        SDAdapterTFForClazz adapter = new SDAdapterTFForClazz();
        System.out.println(computer.readSD(adapter));
    }
}
